import {
  get,
  getBuffer,
  post,
  postJson,
  postFile,
  patchJson,
  del,
  putJson,
  getData
} from "../http.js";
let api = process.env.VUE_APP_API;
if (process.env.VUE_APP_Mock == "true") {
  api = "/mock/";
}

export const playUrl = async (p) =>
  await get(api + "/witness/dv/getPreviewURLs/" + p.deviceId, p);

export const roomInfo = async (p) =>
  await get(api + "/witness/ksh/device/kproom", p);
